import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../components/tabbar/Home.vue'
import Member from '../components/tabbar/Member.vue'
import Search from '../components/tabbar/Search.vue'
import Shopcar from '../components/tabbar/Shopcar.vue'
Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    component:Home
  },
  {
    path:'/home',
    component:Home
  },
  {
    path:'/search',
    component:Search
  },
  {
    path:'/shopcar',
    component:Shopcar
  },
  {
    path:'/member',
    component:Member
  },
]

const router = new VueRouter({
  routes,
  linkActiveClass:'mui-active'//修改默认路由选中类
})

export default router
